package net.sky.oa.service.talkpark.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.sky.oa.dao.talkpark.MailFolderDao;
import net.sky.oa.model.MailFolder;
import net.sky.oa.service.talkpark.MailFolderService;

import com.htsoft.core.service.impl.BaseServiceImpl;


@Service
@Transactional
public class MailFolderServiceImpl extends BaseServiceImpl<MailFolder> implements MailFolderService {
    
	private MailFolderDao mailfolderdao;
	
	@Resource
	public void setDao(MailFolderDao mailfolderdao){
		super.setDao(mailfolderdao);
		this.mailfolderdao=mailfolderdao;
	}

	@Transactional(readOnly=true)
	public List<MailFolder> findAllMailFolder() {
		 
		return mailfolderdao.findAllMailFolder();
	}
	
	@Transactional(readOnly=true)
	public List<MailFolder> getAllUserFolderByParentId(Long userId, Long parentId){
		
		return mailfolderdao.getAllUserFolderByParentId(userId, parentId);
	}
	
	@Transactional(readOnly=true)
	public List<MailFolder> getUserFolderByParentId(Long userId, Long parentId){
        
		return mailfolderdao.getUserFolderByParentId(userId, parentId);
	}

	public List<MailFolder> findByHql(String paramString) {
		
		return null;
	}
}
